package org.slg.oracleproject.respones;

public class ExceptionCode {

    public static final ExceptionCode SUCCESS = new ExceptionCode(200, "操作成功");
    public static final ExceptionCode FAILED = new ExceptionCode(500, "系统异常");

    private int code;
    private String message;

    public ExceptionCode(int code, String message) {
        this.code = code;
        this.message= message;
    }

    public ExceptionCode(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}